// 页面通用样式
.common-wrapper {
  box-sizing: border-box;
  padding: 14px 20px;
}
// 通用标题
.common-title {
  color: #292b3d;
  padding-left: 10px;
  font-weight: 500;
  position: relative;
  font-size: 13px;
  &:before {
    display: block;
    content: '';
    width: 4px;
    height: 10px;
    background: #2c67f6;
    position: absolute;
    top: 4px;
    left: 0;
  }
}

.common-main {
  margin-top: 15px;
  height: calc(100% - 36px);
}
// 通用搜索栏
.common-search.el-form--inline {
  .el-form-item {
    margin-right: 15px;
    margin-bottom: 10px;
    .el-form-item__content {
      line-height: 32px;
    }
    .el-form-item__label {
      line-height: 32px;
    }
  }
  .el-select.mul-selection {
    min-width: 156px;
    .el-select__tags {
      flex-wrap: nowrap;
    }
  }
  .el-select.el-select--medium {
    line-height: 36px;
  }
  // 日期选择器
  .el-range-editor--small.el-input__inner {
    width: 250px;
  }
  .min-datepicker.el-date-editor {
    width: 160px;
  }
  .el-button {
    padding: 0;
    width: 70px;
    height: 32px;
    line-height: 32px;
    font-size: 14px;
  }
  .el-button--default {
    border-color: #48556a;
    color: #39475d;
  }
  .btn-list {
    margin-top: 0;
  }
}
// 通用表格
.common-table {
  height: calc(100% - 110px);
  .el-table {
    font-size: 13px;
    th {
      background-color: #f8f9fb !important;
      color: #292b3d;
      font-weight: 500;
      padding: 9px 0;
      &.el-table__cell.is-leaf {
        border: none;
      }
    }
    .el-table__cell {
      padding: 10px 0;
    }
  }
  .el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
    background-color: #fafbfe;
  }
  .fixed-header {
    position: sticky;
    top: 0;
    z-index: 999;
    border-top: 1px solid #ebeef5;
    th {
      height: 65px;
    }
  }
}
// 通用下拉多选框
.el-select__caret.el-icon-arrow-up:before {
  width: 0;
  height: 0;
  border: 10px;
  content: '';
  border: 6px solid;
  border-color: transparent transparent #606d86 transparent;
  display: inline-block;
  position: relative;
  top: -3px;
}

.el-select-dropdown.mul-select.is-multiple {
  .el-select-dropdown__item {
    padding-left: 24px;
    padding-right: 20px;
    color: #292b3d;
    &.selected {
      font-weight: normal;
      color: #292b3d;
    }
    &.selected::before {
      background: url('~@/assets/img/circle1.png') no-repeat;
      background-size: 100% 100%;
    }
    &::before {
      position: absolute;
      left: 5px;
      top: 11px;
      display: block;
      content: '';
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: url('~@/assets/img/circle2.png') no-repeat;
      background-size: 100% 100%;
    }
  }
}
// 通用分页
.common-pagination .el-pagination.is-background {
  margin-top: 20px;
  button.btn-prev,
  button.btn-next {
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
  }
  .el-pager {
    li {
      font-weight: normal;
      border: 1px solid #dcdfe6;
      border-radius: 4px;
      background: #fff;
    }
    .number.active {
      border-color: #2c67f6;
    }
  }
  .el-pagination__sizes .el-input__inner {
    border-radius: 4px;
    border: 1px solid #dcdfe6;
  }
}
// 通用提示框
.el-message.common-message {
  background-color: rgba(66, 66, 89, 0.8);
  border: none;
  box-shadow: 4px 3px 4px 0px rgba(0, 0, 0, 0.1);
  color: #fff;
  min-width: unset;
  .el-message__content {
    margin-left: 5px;
  }
}
// 通用卡片状页面
.common-tabs-wrapper {
  height: 100%;
  background: rgb(246, 249, 252);
  .el-tabs {
    height: 100%;
    & > .el-tabs__header {
      border: none;
      margin-bottom: 0;
      .el-tabs__nav {
        border-radius: 0;
        border: none;
      }
      .el-tabs__item.is-top {
        width: 120px;
        height: 45px;
        line-height: 45px;
        text-align: center;
        border-radius: 7px 7px 0 0;
        border: none;
        color: #606d86;
        background: #e3e5e9;
        padding: 0 !important;
        &.is-active {
          padding: 0 !important;
          background: #fff;
          color: #252f41;
        }
        & + .el-tabs__item.is-top {
          margin-left: 2px;
        }
      }
    }
    & > .el-tabs__content {
      height: calc(100% - 45px);
      background: #fff;
      padding: 20px;
      overflow: auto;
      box-sizing: border-box;
      .el-tab-pane {
        height: 100%;
      }
    }
  }
}
.el-button.danger-btn {
  background: #fff;
  border-color: #fe3d3d;
  color: #fe3d3d;
}
.right {
  text-align: right;
}
.mb10 {
  margin-bottom: 10px;
}
.mb15 {
  margin-bottom: 15px;
}
.mb20 {
  margin-bottom: 20px;
}

/*modal close style*/
.user-dialog {
  &.el-dialog {
    border-radius: 10px;
  }
  .el-dialog__title {
    color: #48556a;
    font-size: 20px;
  }
  .el-dialog__headerbtn {
    width: 26px;
    height: 26px;
    line-height: 26px;
    background: #ebedf3;
    border-radius: 50%;
    .el-dialog__close {
      color: #9ea2ba;
    }
  }
  .el-button + .el-button {
    margin-left: 15px;
  }
}
// 全局滚动条样式
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(144, 147, 153, 0.3);
}

::-webkit-scrollbar-track {
  background: #fff;
}

/*列表status样式*/
.table-tag.el-tag {
  border: none;
  min-width: 50px;
  border-radius: 10px;
  padding: 0;
  text-align: center;
}
// 通用按钮
.common-btn-block {
  height: 37px;
  text-align: center;
  border: 1px solid #e4e5e7;
  color: #0069ff;
  line-height: 37px;
  cursor: pointer;
}
.remind {
  height: 27px;
  padding-left: 20px;
  background: #fff0e7;
  border-radius: 4px;
  line-height: 27px;
  font-weight: 400;
  color: #48556a;
  font-size: 12px;
  margin-bottom: 10px;
  span {
    color: #252f41;
    margin: 0 4px;
  }
}
.common-bg-title {
  background: #f6f9fc;
  height: 36px;
  font-size: 15px;
  font-weight: 600;
  color: #182236;
  padding-bottom: 16px;
  box-sizing: border-box;
}
.common-radio-border {
  .el-radio-button--mini .el-radio-button__inner {
    padding: 6px 20px;
  }
  .el-radio-button__orig-radio:checked + .el-radio-button__inner {
    border-color: #2c67f6;
    background: #fff;
    color: #2c67f6;
  }
}
.common-prefix-select {
  .el-input__prefix {
    line-height: 28px;
    font-weight: 400;
    color: #606d86;
    left: 12px;
  }
  .el-input--prefix .el-input__inner {
    padding-left: 50px;
  }
  .el-select__tags {
    margin-left: 46px;
  }
}
.common-input-table.el-table {
  color: #292b3d;
  .el-table__empty-block {
    height: 0 !important;
    min-height: 0;
  }
  .el-table__header-wrapper,
  .el-table__body-wrapper {
    width: fit-content;
  }
  .el-input-number {
    width: 100%;
  }
  .el-input__inner {
    border: none;
    background: transparent;
  }
  .el-select {
    .el-input__inner {
      border: none;
      padding: 0 20px 0 0;
    }
    .el-input__suffix {
      right: 0;
    }
  }
  .tag-select {
    position: relative;
    .tag {
      background: #fff;
      position: absolute;
      width: calc(100% - 30px);
      top: 0;
      pointer-events: none;
    }
  }
  .el-date-editor {
    width: 100%;
    .el-input__prefix {
      display: none;
    }
    .el-input__inner {
      padding: 0;
      text-align: center;
      border: none;
    }
  }
  &::after {
    display: none;
  }

  .add-btn {
    width: 14px;
    height: 14px;
    padding: 0;
    text-align: center;
    line-height: 11px;
    border-radius: 2px;
    border: 1px solid #1790ff;
    color: #1790ff;
    font-size: 12px;
    cursor: pointer;
    margin-left: 4px;
  }

  .table-btn .el-button,
  .table-btn .el-button--text:hover,
  .table-btn .el-button--text:focus {
    color: #ff7819;
    padding: 0;
  }

  .table-append {
    height: 60px;
    line-height: 60px;
    background: #f6f9ff;
    font-size: 14px;
    font-weight: bold;
    padding-left: 30px;
  }
}
.el-tag.el-tag--purple {
  background-color: #f8ddff;
  border-color: #efdcf9;
  color: #e12fed;
}

.common-dialog.el-dialog {
  border-radius: 10px;
  .el-dialog__header {
    text-align: center;
    border-bottom: 1px solid #cfd4d8;
  }
  .el-dialog__body {
    padding: 14px 20px;
    .btn-list {
      justify-content: flex-end;
      margin-top: 10px;
    }
  }
}

.grid2 {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(2, 50%);
  grid-row-gap: 15px;
}
.grid3 {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(3, 33%);
  grid-row-gap: 15px;
}
